package at.fhooe.im440.pandora.events;

public class CollisionEvent extends Event{

	private String TYPE = "Collision";
	private String object1 = "";
	private String object2 = "";
	
	public CollisionEvent(String obj1, String obj2)
	{
		super();
		object1 = obj1;
		object2 = obj2;
	}
	
	public String getObjectName1()
	{
		return object1;
	}
	
	public String getObjectName2()
	{
		return object2;
	}
	
	@Override
	public String getType() {
		return TYPE;
	}

	@Override
	public void processEvent(EventListener listener) {
		if(listener instanceof CollisionListener)
		{
			((CollisionListener) listener).onCollision(this);
		}
	}

}
